package com.ruoyi.web.controller.tlc.api;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.tlc.TlcFaq;
import com.ruoyi.system.domain.tlc.TlcMap;
import com.ruoyi.system.service.tlc.ITlcFaqService;
import com.ruoyi.system.service.tlc.ITlcMapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 参数配置 信息操作处理
 * 
 * @author ruoyi
 */
@RestController
@RequestMapping("/api/map")
public class TlcMapController extends BaseController
{
    @Autowired
    private ITlcMapService tlcMapService;

    @GetMapping("/list")
    public AjaxResult list()
    {
        LambdaQueryWrapper<TlcMap> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.orderBy(true,true, TlcMap::getSort);
        //未删除
        queryWrapper.eq(TlcMap::getDelFlag,0);
        //可用
        queryWrapper.eq(TlcMap::getStatus,0);
        List<TlcMap> list = tlcMapService.list(queryWrapper);
        return success(list);
    }

}
